﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
	public class RecordInfoConfig : IEntityTypeConfiguration<RecordInfo>
	{
		public void Configure(EntityTypeBuilder<RecordInfo> builder)
		{
			builder.ToTable("T_Record");
			builder.Property(r => r.AddTime);
			builder.Property(r => r.Level).HasDefaultValue(0).IsRequired();
			builder.Property(r => r.DelFlag).HasDefaultValue(0).IsRequired();
			builder.Property(r => r.Content).HasMaxLength(200);

		}
	}
}
